package com.leo.apptest.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.leo.apptest.R;
import com.leo.apptest.adapter.TestRecyclerAdapter;

public class LayoutInflaterActivity extends AppCompatActivity {

    private RecyclerView mRecyclerTest;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_layout_inflater);
        mRecyclerTest = (RecyclerView) findViewById(R.id.recyclerTest);
        mRecyclerTest.setLayoutManager(new LinearLayoutManager(this));
        mRecyclerTest.setAdapter(new TestRecyclerAdapter());
    }
}
